<?php
/* @var $this ServiciosController */
/* @var $model servicios */
/* @var $form CActiveForm */
?>
<div class="ajuste">
<div class="form">

<?php
$this->widget('application.extensions.tipsy.Tipsy', array(
  'fade' => false,
  'gravity' => 'n',
  'items' => array(
    array('id' => '.tooltipster'),
    array('id' => '#tooltipster'),
    array('id' => array('model' => $model, 'attribute' => 'model_attribute_name')
     ,'fallback' => 'Put custom tooltip here.' ),    
  ),  
));
?>

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'servicios-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'Código servicio'); ?>
		<?php echo $form->textField($model,'Se_idservicio_PK',array('size'=>5,'maxlength'=>5,"class"=>"form-group  form-control")); ?>
		<?php echo"<img src='../images/help_icon.gif' class='tooltipster' title='Código que identifica de forma única a cada servicio, proporcionado por el Hospital de La Anexión.'>" ?>
		<?php echo $form->error($model,'Se_idservicio_PK'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Nombre'); ?>
		<?php echo $form->textField($model,'Se_nombre',array('size'=>30,'maxlength'=>30,"class"=>"form-group  form-control")); ?>
		<?php echo"<img src='../images/help_icon.gif' class='tooltipster' title='Nombre completo del servicio.'>" ?>
		<?php echo $form->error($model,'Se_nombre'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Ubicación'); ?>
		<?php echo $form->textArea($model,'Se_ubicacion',array('size'=>60,'maxlength'=>60,"class"=>"form-group  form-control textarea")); ?>
		<?php echo $form->error($model,'Se_ubicacion'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Agregar' : 'Guardar',array("class"=>"btn btn-primary")); ?>
		<?php echo CHtml::submitButton('Cancelar',array('name'=>'cancelar',"class"=>"btn btn-primary")); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
</div>